<template>
  <b-container fluid>
    <b-card-group deck>
      <b-row fluid no-gutters>
        <b-col v-for="news in newsList" :key="news.id" sm="6">
          <news-card
            :id="news.id"
            :title="news.title"
            :desc="news.summary"
            :publish-ts="news.createtime"
            :img-src="news.cover_image"
          />
        </b-col>
      </b-row>
    </b-card-group>
  </b-container>
</template>

<script>
import NewsCard from '@/components/NewsCard';

export default {
  components: {
    NewsCard,
  },
  props: {
    newsList: {
      type: Array,
      required: true,
    },
    imgDomain: {
      type: String,
      default: '',
    },
  },
};
</script>
